package com.sevensoft.framework.beans.factory;

/**
 * Bean工厂
 */
public interface BeanFactory {
    /**
     * 通过name获取Bean
     * @param name
     * @return
     * @throws Exception
     */
    Object getBean(String name) throws Exception;

    /**
     * 通过name和字节码文件获取Bean
     * @param name
     * @param clazz
     * @return
     * @param <T>
     * @throws Exception
     */
    <T> T getBean(String name,Class<? extends T> clazz) throws Exception;



}
